$(window).load(function(){
	var isShow = true;
	function costDownUp(){
		if(isShow){
			$(".detail-content").stop().animate({height: "0"});
			$(".detail-cost img").attr("src", "images/orderdetail_down.png");
			isShow = false;
		}else{
			$(".detail-content").stop().animate({height: "100%"});
			$(".detail-cost img").attr("src", "images/orderdetail_up.png");
			isShow = true;
		}
	}

	$(".detail-cost span").eq(1).on("click", function(){
		costDownUp();
	})
	$(".detail-cost img").on("click", function(){
		costDownUp();
	})
})